import request from './request'

// 获取当前用户信息
export const getCurrentUserInfo = () => {
  return request({
    url: '/fmms/userController/getCurrentUserInfo',
    method: 'get'
  })
}

// 更新当前用户信息
export const updateCurrentUserInfo = (data) => {
  return request({
    url: '/fmms/userController/updateCurrentUserInfo',
    method: 'put',
    data
  })
}

// 校验用户输入的密码是否正确
export const checkUserPassword = (data) => {
  return request({
    url: '/fmms/userController/checkUserPassword',
    method: 'post',
    data
  })
}
